# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <pabloyoyoista@postmarketos.org>
pkgname=gnome-maps
pkgver=47.1
pkgrel=0
pkgdesc="simple map client"
url="https://wiki.gnome.org/Apps/Maps"
# armhf, s390x, riscv64: limited by gjs
arch="all !armhf !s390x !riscv64"
license="GPL-2.0-or-later"
depends="
	geoclue
	gfbgraph
	gjs
	libadwaita
	libgweather4
	libportal
	"
makedepends="
	folks-dev
	geoclue-dev
	geocode-glib-dev>=3.26.4-r1
	gjs-dev
	glib-dev
	gobject-introspection-dev
	gtk4.0-dev
	libadwaita-dev
	libgee-dev
	libgweather4-dev
	libportal-dev
	librsvg-dev
	libshumate-dev>=1.0.1-r1
	libxml2-dev
	meson
	rest1-dev
	"
checkdepends="
	appstream-glib
	desktop-file-utils
	"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-maps/${pkgver%.*}/gnome-maps-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
23e78d9a3b25f1a0ef28e80d72a20ca8c7c4d19a464084eea55007633b5376025cb187f9fc14518ad4212e63e39bd13641383b30decc25326d0ad0473db4bb56  gnome-maps-47.1.tar.xz
"
